-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage fees: storage limiter #80
Storage fees: storage limiter #80
Conversation
…w/flow-go into janez/storage-fees-storage-limiter
…w/flow-go into janez/storage-fees-storage-limiter
…w/flow-go into janez/storage-fees-storage-limiter
…w/flow-go into janez/storage-fees-storage-limiter
…w/flow-go into janez/storage-fees-storage-limiter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking solid! Nice work 👍
|
||
type TransactionStorageLimiter struct{} | ||
|
||
func NewTransactionStorageLimiter() *TransactionStorageLimiter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 👏
} | ||
} | ||
|
||
func newMockLedger(updatedKeys []string, ownerKeyStorageValue []OwnerKeyValue) MockLedger { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to use MapLedger
in place of this mock? I think you could keep this helper function to seed the ledger state -- I'm just not sure you need to define an extra data structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to check how many times I access the ledger get function. I don't think I can do that part with the MapLedger. I could remove those tests, since they are only testing that storage capacity checking is done once per account.
…w/flow-go into janez/storage-fees-storage-limiter
…w/flow-go into janez/storage-fees-storage-limiter
…w/flow-go into janez/storage-fees-storage-limiter
FLIP reference: onflow/flow#99
task reference: https://github.com/dapperlabs/flow-go/issues/4935
add storage limit checking to the transaction pipeline